package org.lee.domain.service.engine;

import lombok.Data;
import org.lee.domain.constants.SysConstants;
import org.lee.domain.service.logic.ILogicFilter;
import org.lee.domain.service.logic.impl.UserAgeLogicFilter;
import org.lee.domain.service.logic.impl.UserGenderLogicFilter;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * EngineConfig
 * 配置
 * @author dralee
 * @date 2021-11-22 14:11:36
 **/
@Data
public class EngineConfig {

    static Map<String, ILogicFilter> logicFilterMap;

    static {
        logicFilterMap = new ConcurrentHashMap<>();
        logicFilterMap.put(SysConstants.USER_AGE_FILTER, new UserAgeLogicFilter());
        logicFilterMap.put(SysConstants.USER_GENDER_FILTER, new UserGenderLogicFilter());
    }

}
